# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1293190608.75337
_template_filename='/home/sunzheng/Projects/FidoWeb/FidoWeb_0.98/fidoweb/templates/map/maploc.mako'
_template_uri='map/maploc.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = []


def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1

        c.jsFiles.append('/script/map/maploc.js?v=10')
        
        
        # SOURCE LINE 3
        __M_writer(u'\n<style type="text/css">\n\t#topiclist tr{cursor:pointer;}\n\t#topiclist tr:hover{background-color:#F9F9F9;}\n\t#button_add_topic{\n\t\tfloat:right;\n\t\twidth:80px;\n\t\theight:25px;\n\t\tbackground:url(\'/image/global/button_add_topic.png\');\n\t}\n\t#button_add_topic:hover{background-position:0 -25px;}\n\t#link_return{\n\t\tfloat:left;\n\t\twidth:60px;\n\t\theight:25px;\n\t\tbackground:url(\'/image/global/button_return.png\');\n\t}\n\t#link_return:hover{background-position:0 -25px;}\n</style>\n<div class="page_variable">\n\t<div var_name="info" id="')
        # SOURCE LINE 23
        __M_writer(filters.decode.utf8(c.maploc.id))
        __M_writer(u'" maploc_id="')
        __M_writer(filters.decode.utf8(c.maploc.id))
        __M_writer(u'" name="')
        __M_writer(filters.decode.utf8(c.maploc.name))
        __M_writer(u'" address="')
        __M_writer(filters.decode.utf8(c.maploc.address))
        __M_writer(u'"\n\t\ttopic_count="')
        # SOURCE LINE 24
        __M_writer(filters.decode.utf8(c.topicCount))
        __M_writer(u'" rate_count="')
        __M_writer(filters.decode.utf8(c.rateCount))
        __M_writer(u'" total_rate_score="')
        __M_writer(filters.decode.utf8(c.totalRateScore))
        __M_writer(u'"\n')
        # SOURCE LINE 25
        if c.loginUser != None :
            # SOURCE LINE 26
            __M_writer(u'\t\t\tmy_rating="')
            __M_writer(filters.decode.utf8(c.myRating))
            __M_writer(u'"\n')
            pass
        # SOURCE LINE 28
        __M_writer(u'\t></div>\n</div>\n<div id="page_bound">\n\t<a class="bshareDiv" href="http://www.bshare.cn/share">\u5206\u4eab\u6309\u94ae</a><script language="javascript" type="text/javascript" src="http://www.bshare.cn/button.js#uuid=&amp;bp=renren,sinaminiblog,qzone,douban,blog163,blogsina,kaixin001,bgoogle&amp;style=3&amp;fs=4&amp;textcolor=#FFF&amp;bgcolor=#ADADAD&amp;text=\u5206\u4eab\u5230..."></script>\n\t<div class="page_column_left_padding15">\n\t\t<div id="topic_count" align="center" style="background:url(\'/image/global/post_replies.png\') no-repeat scroll 0 0 transparent;width:46px;height:52px;position:absolute;top:-20px;right:-20px;color:#FFFFFF;font-size:18px;padding-left:3px;padding-top:11px;">\n\t\t\t')
        # SOURCE LINE 34
        __M_writer(filters.decode.utf8(c.topicCount))
        __M_writer(u'\n\t\t</div>\n\t\t<div class="top"></div>\n\t\t<div class="content">\n\t\t\t<div id="loc_name" style="clear:both;">\n\t\t\t\t<h1>')
        # SOURCE LINE 39
        __M_writer(filters.decode.utf8(c.maploc.name))
        __M_writer(u'</h1>\n\t\t\t</div>\n\t\t\t')
        # SOURCE LINE 41
        runtime._include_file(context, u'maploc_module_locinfo.mako', _template_uri)
        __M_writer(u'\n\t\t\t<div id="topiclist" style="padding-top:30px;clear:both;"></div>\n\t\t\t<table><tbody>\n\t\t\t\t<tr id="topiclist_example" class="hidden_example">\n\t\t\t\t\t<td id="topic_id" style="display:none;"></td>\n\t\t\t\t\t<td><div id="topic_title"></div></td>\n\t\t\t\t\t<td style="width:100px;"><div id="topic_date" style="text-align:center;color:#A1A0A0;border-left:1px solid #E7E7E7;"></div></td>\n\t\t\t\t\t<td style="width:80px;"><div id="topic_user" style="text-align:center;border-left:1px solid #E7E7E7;"></div></td>\n\t\t\t\t\t<td style="width:30px;"><div id="topic_postcount" style="text-align:center;border-left:1px solid #E7E7E7;"></div></td>\n\t\t\t\t</tr>\n\t\t\t</tbody></table>\n\t\t\t<div id="add_topic" style="width:526px;padding-top:30px;width:100%;clear:both;">\n\t\t\t\t<h2>\u53d1\u8d77\u8bdd\u9898</h2>\n\t\t\t\t<div id="topic_bound" style="padding-top:5px;">\n')
        # SOURCE LINE 55
        if c.loginUser == None :
            # SOURCE LINE 56
            __M_writer(u'\t\t\t\t\t\t<div style="padding-left:10px;">\u767b\u5f55\u540e\u521b\u5efa\u8bdd\u9898\u3002</div>\n')
            # SOURCE LINE 57
        else :
            # SOURCE LINE 58
            __M_writer(u'\t\t\t\t\t\t<table align="center" style="width:100%;">\n\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td width="30px">\u6807\u9898</td>\n\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t<div id="topic_msg" style="float:left;display:none;width:100%;"></div>\n\t\t\t\t\t\t\t\t\t\t<div id="topic_title">\n\t\t\t\t\t\t\t\t\t\t\t<input id="input_title" name="title" maxlength="50" style="width:100%;"></input>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t<div id="topic_content" style="">\n\t\t\t\t\t\t\t\t\t\t\t<textarea id="input_content" name="content" style="width:100%;height:70px;"></textarea>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t\t<td><a href="javascript:void(0);" id="button_add_topic"></a></td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n')
            pass
        # SOURCE LINE 84
        __M_writer(u'\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="padding-top:30px;clear:both;"></div>\n\t\t</div>\n\t\t<div class="bottom"></div>\n\t</div>\n\t<div class="page_column_right_padding_left30">\n\t\t<div style="height:20px;clear:both;"></div>\n\t\t<a id="link_return" href="/map"></a>\n\t\t<div style="height:20px;clear:both;"></div>\n')
        # SOURCE LINE 94
        if c.maploc.store != None :
            # SOURCE LINE 95
            __M_writer(u'\t\t\t')
            runtime._include_file(context, u'maploc_module_discounts.mako', _template_uri)
            __M_writer(u'\n\t\t\t<div style="height:30px;clear:both;"></div>\n')
            pass
        # SOURCE LINE 98
        __M_writer(u'\t\t')
        runtime._include_file(context, u'maploc_module_gallery.mako', _template_uri)
        __M_writer(u'\n\t</div>\n</div>')
        return ''
    finally:
        context.caller_stack._pop_frame()


